<?php

ini_set('date.timezone', 'Asia/Shanghai');
// change the following paths if necessary
$yii=dirname(__FILE__).'/../../library/yii-1.1.10.r3566/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

error_reporting(0);
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') {
	$config=dirname(__FILE__).'/protected/config/development.php';
	defined('YII_DEBUG') or define('YII_DEBUG',true);
	defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
	error_reporting(E_ALL);
}

require_once($yii);
Yii::createWebApplication($config)->run();